<template>
  <div class="channel">
    <van-grid :column-num="5" :border="false">
      <van-grid-item
        @click="toPageCategory(item.url)"
        :icon="item.icon_url"
        :text="item.name"
        v-for="(item, index) in $store.state.home.channel"
        :key="index"
      />
    </van-grid>
  </div>
</template>

<script>
export default {
  methods: {
    toPageCategory(url){
      this.$router.push(url);
    }
  },
};
</script>

<style lang="scss" scoped>
</style>